Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix detection of Bluetooth MIDI devices #25976

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hpoussin
Copy link

@hpoussin hpoussin commented Jan 3, 2025

This relaxes constraints on MIDI hardware, added in edd6bb1

My Bluetooth MIDI device has type 0x10002, ie
SND_SEQ_PORT_TYPE_MIDI_GENERIC | SND_SEQ_PORT_TYPE_HARDWARE, which doesn't contain the SND_SEQ_PORT_TYPE_PORT flag.

Resolves: #19747

This relaxes constraints on MIDI hardware, added in
edd6bb1

My Bluetooth MIDI device has type 0x10002, ie
SND_SEQ_PORT_TYPE_MIDI_GENERIC | SND_SEQ_PORT_TYPE_HARDWARE,
which doesn't contain the SND_SEQ_PORT_TYPE_PORT flag.

Resolves: musescore#19747
@hpoussin hpoussin reopened this Jan 3, 2025
@cbjeukendrup cbjeukendrup requested a review from Eism January 3, 2025 14:00
@@ -77,7 +77,7 @@ MidiDeviceList AlsaMidiInPort::availableDevices() const

int streams = SND_SEQ_OPEN_INPUT;
const unsigned int cap = SND_SEQ_PORT_CAP_SUBS_READ | SND_SEQ_PORT_CAP_READ;
const unsigned int type_hw = SND_SEQ_PORT_TYPE_PORT | SND_SEQ_PORT_TYPE_HARDWARE;
const unsigned int type_hw = SND_SEQ_PORT_TYPE_HARDWARE;
const unsigned int type_sw = SND_SEQ_PORT_TYPE_PORT | SND_SEQ_PORT_TYPE_SOFTWARE;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, let's remove it for software too and check that MIDI Thgrouh devices are not on the list (I added type filters in this commit edd6bb1)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have these MDI Thgrouh devices, even without any filter. Can you check yourself ?
After that, should I update this PR, or you will do the flag removal for software too in another commit ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MuseScore 4 does not detect devices connected via Bluetooth MIDI
2 participants